#include <QPainter>
#include "common.h"
#include "controlframe.h"

ControlFrame::ControlFrame(QWidget *parent) :
    QWidget(parent)
{
    m_background.load(TMP_DIR+"convertframe.png");
    this->setMinimumSize(830, 50);
    this->setMaximumHeight(50);
}

void ControlFrame::paintEvent(QPaintEvent *)
{
    QPainter painter(this);
    painter.drawPixmap(0,0,width(),height(),m_background);
}
